package com.lingnan.tijian.service.impl;

import java.util.List;

import com.lingnan.tijian.domain.CheckItem;
import com.lingnan.tijian.mapper.CheckItemMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lingnan.tijian.mapper.CheckItemDetailedMapper;
import com.lingnan.tijian.domain.CheckItemDetailed;
import com.lingnan.tijian.service.ICheckItemDetailedService;

/**
 * 检查项明细Service业务层处理
 * 
 * @author laoda
 * @date 2025-01-05
 */
@Service
public class CheckItemDetailedServiceImpl implements ICheckItemDetailedService 
{
    @Autowired
    private CheckItemDetailedMapper checkItemDetailedMapper;

    @Autowired
    private CheckItemMapper checkItemMapper;

    /**
     * 查询检查项明细
     * 
     * @param id 检查项明细主键
     * @return 检查项明细
     */
    @Override
    public CheckItemDetailed selectCheckItemDetailedById(String id)
    {
        return checkItemDetailedMapper.selectCheckItemDetailedById(id);
    }

    /**
     * 查询检查项明细列表
     * 
     * @param checkItemDetailed 检查项明细
     * @return 检查项明细
     */
    @Override
    public List<CheckItemDetailed> selectCheckItemDetailedList(CheckItemDetailed checkItemDetailed)
    {
        return checkItemDetailedMapper.selectCheckItemDetailedList(checkItemDetailed);
    }

    /**
     * 新增检查项明细
     * 
     * @param checkItemDetailed 检查项明细
     * @return 结果
     */
    @Override
    public int insertCheckItemDetailed(CheckItemDetailed checkItemDetailed)
    {
        return checkItemDetailedMapper.insertCheckItemDetailed(checkItemDetailed);
    }

    /**
     * 修改检查项明细
     * 
     * @param checkItemDetailed 检查项明细
     * @return 结果
     */
    @Override
    public int updateCheckItemDetailed(CheckItemDetailed checkItemDetailed)
    {
        return checkItemDetailedMapper.updateCheckItemDetailed(checkItemDetailed);
    }

    /**
     * 批量删除检查项明细
     * 
     * @param ids 需要删除的检查项明细主键
     * @return 结果
     */
    @Override
    public int deleteCheckItemDetailedByIds(String[] ids)
    {
        return checkItemDetailedMapper.deleteCheckItemDetailedByIds(ids);
    }

    /**
     * 删除检查项明细信息
     * 
     * @param id 检查项明细主键
     * @return 结果
     */
    @Override
    public int deleteCheckItemDetailedById(String id)
    {
        return checkItemDetailedMapper.deleteCheckItemDetailedById(id);
    }

    @Override
    public List<CheckItem> selectCheckItemDetailedIdAndName() {
        return checkItemMapper.selectCheckItemDetailedIdAndName();
    }
}
